<template>
  <div class="root">
    <Layout>
      <Sider width="250" class="left_side" hide-trigger>
        <div class="admin_top">
          <div class="admin_top_title">Flandre社区</div>
          <div class="admin_top_msg">后台管理平台</div>
        </div>
        <div class="admin_nav">
          <LeftSide></LeftSide>
        </div>
      </Sider>
      <Layout>
        <Header class="admin_head">
          <div class="head_item" @click="$router.push({path:'Index'})">
            <Icon type="ios-document" :size="18"/>
            Flandre首页
          </div>
          <div class="head_item" @click="showAdminInfo()">
            <Icon type="md-person" :size="18"/>
            管理员信息
          </div>
          <div class="head_item">
            <Icon type="md-lock" :size="18"/>
            修改密码
          </div>
          <div class="head_item">
            <Icon type="ios-log-out" :size="18"/>
            退出登录
          </div>
          <div class="head_item">
            <Avatar icon="ios-person" size="large"/>
          </div>
        </Header>
        <Content>Content</Content>
      </Layout>
    </Layout>
  </div>
</template>

<script>
  import LeftSide from '@/components/admin/leftSide'

  export default {
    name: "adminIndex",
    components: {LeftSide},
    data: () => ({}),
    methods: {
      showAdminInfo() {
        this.$Modal.info({
          title: "管理员信息",
          content: "<p>AdminID:508168274</p>" +
            "<p>AdminName:挽梦</p>" + "<p>AdminRole:admin</p>"
        });
      }
    }
  }
</script>

<style scoped>
  .root {
    width: 100%;
    height: 99vh;
  }

  .left_side {
    height: 99vh;
  }

  .admin_top {
    width: 100%;
    height: 100px;
  }

  .admin_head {
    width: 100%;
    font-size: .16rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  .head_item {
    margin-left: 20px;
    color: white;
    cursor: pointer;
  }

  .admin_nav {
    width: 100%;
    height: 79vh;
    overflow: auto;
    margin-top: 20px;
  }

  .admin_nav::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
  }

  .admin_nav::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    background-color: lightgray;
    background-image: -webkit-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent
    );
  }

  .admin_nav::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #ededed;
    border-radius: 10px;
  }

  .admin_top_title {
    font-size: 36px;
    height: 80px;
    line-height: 80px;
    color: white;
    text-align: center;
  }

  .admin_top_msg {
    font-size: 18px;
    height: 20px;
    line-height: 20px;
    color: white;
    text-align: center;
  }
</style>
